package com.example.mq;

import com.example.mq.mqserver.BrokerServer;
import org.springframework.boot.ConfigurableBootstrapContext;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;
import java.lang.module.Configuration;

@SpringBootApplication
public class MqApplication {
    public static ConfigurableApplicationContext context;
    public static void main(String[] args) throws IOException {
        context =SpringApplication.run(MqApplication.class, args);

        BrokerServer brokerServer = new BrokerServer(8080);
        brokerServer.start();
    }

}
